//logs.js
const util = require('../../utils/util.js')
const auth = require('../../utils/auth.js')
Page({
  data: {
     itemFooter:{
        message:'首页'
     },
     calenArray: '',
     loading:false
  },
  onLoad: function () {
    var that=this;
    util.ajax({
      url: 'act/actapi/list',
      data: {
          material_type:1,
          p:1,
          page_size:200
      },
      header: {
          'content-type': 'application/json' // 默认值
      },
      success: function(res) {
        var calenArray = res.data.list;
        that.setData({
            calenArray : calenArray,
            loading:true
         });
      }
    })
  },
  durationChange: function(e) {
    this.setData({
      duration: e.detail.value
    })
  }
})
